package fr.nts.application.novadmin.front.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Controlleur MVC lié à la page d'accueil de l'application
 * 
 * @author sco
 * @version 1.0.0
 */
@Controller
public class HomeController extends ABaseController{

	protected static final Logger log = LoggerFactory.getLogger(HomeController.class);
	
	private final static String HOME_VIEW = "/novadmin/home/index";
	private final static String MY_INFOS_VIEW = "/novadmin/home/my-infos";
	
	//private final static String MY_INFOS_MODEL = "myInfosModel";
	
	/**
	 * Affiche la page d'accueil
	 */
	@RequestMapping(value = "/home", method = {RequestMethod.GET})
	public String home(ModelMap model){
		
		return HOME_VIEW;
	}
	
	
	/**
	 * Affiche la page pour modifier ces infos persos
	 */
	@RequestMapping(value = "/home/my-infos", method = {RequestMethod.GET})
	public String myInfos(ModelMap model){
		
		return MY_INFOS_VIEW;
	}
}